package com.appointment.dto;

import com.appointment.utils.constants.PatternConstants;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class SmsCodeRequestDto {
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = PatternConstants.PHONE_PATTERN, message = "手机号格式不正确")
    private String phone;
}
